package com.mingda.weathermagiccenter.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 气象等值面数据表
 * @TableName ws_equisurface_data
 */
@TableName(value ="ws_equisurface_data")
@Data
public class WsEquisurfaceData implements Serializable {
    /**
     * 
     */
    @TableId(value = "id")
    private String id;

    /**
     * 机构id
     */
    @TableField(value = "orgid")
    private String orgid;

    /**
     * 机构名称
     */
    @TableField(value = "orgname")
    private String orgname;

    /**
     * 天气时间
     */
    @TableField(value = "wdate")
    private String wdate;

    /**
     * 天气类别
     */
    @TableField(value = "wtype")
    private String wtype;

    /**
     * 天气数据来源
     */
    @TableField(value = "wsource")
    private String wsource;

    /**
     * 天气geometry数据
     */
    @TableField(value = "geom")
    private String geom;

    /**
     * 创建时间
     */
    @TableField(value = "ctime")
    private LocalDateTime ctime;

    /**
     * 标识1有效0无效
     */
    @TableField(value = "flag")
    private String flag;

    @TableField(value = "legend")
    private String legend;

    @TableField(value = "projectid")
    private String projectid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WsEquisurfaceData other = (WsEquisurfaceData) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrgid() == null ? other.getOrgid() == null : this.getOrgid().equals(other.getOrgid()))
            && (this.getOrgname() == null ? other.getOrgname() == null : this.getOrgname().equals(other.getOrgname()))
            && (this.getWdate() == null ? other.getWdate() == null : this.getWdate().equals(other.getWdate()))
            && (this.getWtype() == null ? other.getWtype() == null : this.getWtype().equals(other.getWtype()))
            && (this.getWsource() == null ? other.getWsource() == null : this.getWsource().equals(other.getWsource()))
            && (this.getGeom() == null ? other.getGeom() == null : this.getGeom().equals(other.getGeom()))
            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()))
            && (this.getLegend() == null ? other.getLegend() == null : this.getLegend().equals(other.getLegend()))
            && (this.getProjectid() == null ? other.getProjectid() == null : this.getProjectid().equals(other.getProjectid()))
            && (this.getFlag() == null ? other.getFlag() == null : this.getFlag().equals(other.getFlag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrgid() == null) ? 0 : getOrgid().hashCode());
        result = prime * result + ((getOrgname() == null) ? 0 : getOrgname().hashCode());
        result = prime * result + ((getWdate() == null) ? 0 : getWdate().hashCode());
        result = prime * result + ((getWtype() == null) ? 0 : getWtype().hashCode());
        result = prime * result + ((getWsource() == null) ? 0 : getWsource().hashCode());
        result = prime * result + ((getGeom() == null) ? 0 : getGeom().hashCode());
        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
        result = prime * result + ((getFlag() == null) ? 0 : getFlag().hashCode());
        result = prime * result + ((getProjectid() == null) ? 0 : getProjectid().hashCode());
        result = prime * result + ((getLegend() == null) ? 0 : getLegend().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orgid=").append(orgid);
        sb.append(", orgname=").append(orgname);
        sb.append(", wdate=").append(wdate);
        sb.append(", wtype=").append(wtype);
        sb.append(", wsource=").append(wsource);
        sb.append(", geom=").append(geom);
        sb.append(", ctime=").append(ctime);
        sb.append(", flag=").append(flag);
        sb.append(", legend=").append(legend);
        sb.append(", projectid=").append(projectid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}